import {createRouter, createWebHistory, RouteRecordRaw} from 'vue-router'


const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: () => import('../View/User/Login.vue')
    },
    {
        path: '/Register',
        name: 'Register',
        component: () => import('../View/User/Register.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes:routes
})

//导出路由
export default router